import request from '@/utils/request'

export function loginByUsername(username, pwd) {
  const data = {
    username,
    pwd
  }

  return request({
    url: '/login',
    method: 'post',
    data
  })
}

export function logout(user_num) {
  return request({
    url: '/logout',
    method: 'GET',
    params: { user_num }
  })
}

export function getUserInfo() {
  return request({
    url: 'agent/agentinfo',
    method: 'GET'
  })
}

